home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in.1</name>
- <id>-1</id>
- <cardCount>3</cardCount>
- <cardID>3716</cardID>
- <listID>2269</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>‚àû‚àû‚àû‚àû Script info for "List Randomizer 2.1", STACK ‚àû‚àû‚àû‚àû
-
- HANDLERS:
- -- closeStack, openStack, readFile, saveFile
-
- GLOBALS:
- -- fName, status, uL
-
- STATS: 1671 chars, 76 lines, 3/14/92, 2:22 PM
- ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
- --
- -- Script of stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- THIS STACK IS FOR FREE DISTRIBUTION! IT CANNOT BE USED
- -- COMMERCIALLY OR DISTRUIBUTED FOR PROFIT!
- --
- --
- -- This script contains startup and subroutine scripts.
- --
- on openStack
- global uL,fName,status
- put the userlevel into uL
- If the shiftkey is not down then
- hide menubar
- set the userlevel to 2
- end if
-
- --put empty into cd fld "TheList"
- put empty into fName
- put "N" into status
- end openStack
-
- on closeStack
- global uL,fName,status
- if status is "N" and cd fld "TheList" is not empty then
- --
- -- need to save list before exiting
- --
- answer "Save changes before leaving?" with "Yes" or "No"
- if it is "Yes" then do saveFile
- end if
-
- set the userLevel to uL
- end closeStack
-
- on readFile
- global uL,fName,status
- --
- answer file "List location..." of type TEXT -- REV 910916
- if it is empty then exit readFile
- put it into fName
- --
- open file fName
- put 1 into lNumber
- read from file fName until return
- repeat until it is empty
- put it after cd fld "TheList"
- read from file fName until return
- end repeat
-
- close file fName
- end readFile
-
- on saveFile
- global uL,fName,status
- --
- if fName is empty then
- ask file "Save list as..." with "TheList.txt"
- if it is empty then exit saveFile
- put it into fName
- end if
- --
- open file fName
- write cd fld "TheList" to file fName
-
- close file fName
- end saveFile
-
- </script>
- <background id="4025" file="background_4025.xml" name="" />
- <card id="3716" file="card_3716.xml" marked="false" name="" owner="4025" />
- <card id="5297" file="card_5297.xml" marked="false" name="Help" owner="4025" />
- <card id="5716" file="card_5716.xml" marked="false" name="About" owner="4025" />
- </stack>
-